package com.syezon.wifikey.ad;

import com.blankj.utilcode.util.SPUtils;

/**
 * Created by Administrator on 2019/1/16.
 */

public class AdConfig {

    public static final long APP_ID = 5;
    public static final String KEY = "bdfe012db8dd4fdca3ad8c73acdbf281";
    public static final String CONFIG_NAME = "batter_ad_config";
    public static final String CAN_SHOW_SELF_AD = "can_show_self_ad";
    public static final String CAN_SHOW_GDT_AD = "can_show_gdt_ad";
    public static final String CAN_SHOW_CSJ_AD = "can_show_csj_ad";
    public static final String CAN_SHOW_KY_AD = "can_show_ky_ad";
    public static final String CAN_SHOW_YI_YOU_LIAO_NEWS_AD = "can_show_yi_you_liao_news_ad";

    public static void saveCanShowSelfAd(boolean can) {
        SPUtils.getInstance(CONFIG_NAME).put(CAN_SHOW_SELF_AD, can);
    }

    public static boolean canShowSelfAd() {
        return SPUtils.getInstance(CONFIG_NAME).getBoolean(CAN_SHOW_SELF_AD, true);
    }

    public static void saveCanShowGDTAd(boolean can) {
        SPUtils.getInstance(CONFIG_NAME).put(CAN_SHOW_GDT_AD, can);
    }

    public static boolean canShowGDTAd() {
        return SPUtils.getInstance(CONFIG_NAME).getBoolean(CAN_SHOW_GDT_AD, true);
    }

    public static void saveCanShowCSJAd(boolean can) {
        SPUtils.getInstance(CONFIG_NAME).put(CAN_SHOW_CSJ_AD, can);
    }

    public static boolean canShowCSJAd() {
        return SPUtils.getInstance(CONFIG_NAME).getBoolean(CAN_SHOW_CSJ_AD, true);
    }


    public static void saveCanShowKYAd(boolean can) {
        SPUtils.getInstance(CONFIG_NAME).put(CAN_SHOW_KY_AD, can);
    }

    public static boolean canShowKYAd() {
        return SPUtils.getInstance(CONFIG_NAME).getBoolean(CAN_SHOW_KY_AD, true);
    }

    public static void saveCanShowYiYouLiaoAd(boolean can) {
        SPUtils.getInstance(CONFIG_NAME).put(CAN_SHOW_YI_YOU_LIAO_NEWS_AD, can);
    }

    public static boolean canShowYiYouLiaoAd() {
        return SPUtils.getInstance(CONFIG_NAME).getBoolean(CAN_SHOW_YI_YOU_LIAO_NEWS_AD, true);
    }
}
